﻿<%@ Page Language="C#" MasterPageFile="~/Web/Master/BackMasterPage.master" AutoEventWireup="true" CodeFile="UpdateBookInfo.aspx.cs" Inherits="Web.Back.UpdateBookInfo" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <form runat="server">
        <div id="wrapper">

            <div id="page-wrapper">
                <div class="row">
                    <div class="col-lg-12">
                        <h1 class="page-header">更新图书信息</h1>
                        <hr class="bg-info alert-dark">
                    </div>
                    <!-- /.col-lg-12 -->
                </div>

                <!-- /.row -->
                <div class="panel panel-default">
                    <div class="panel-heading">
                            <asp:Label ID="ResultInfo" runat="server" Text=""></asp:Label></b></small>
                    </div>
                    <!-- /.panel-heading -->
                    <div class="panel-body">

                        <div class="form-group">
                            <label class="form-label">书名：</label>
                            <asp:TextBox class="form-control" placeholder="图书名称" ID="TextName" runat="server"></asp:TextBox>
                        </div>
                        <div class="form-group">
                            <label class="form-label">作者：</label>
                            <asp:TextBox class="form-control" placeholder="图书作者" ID="TextAuthor" runat="server"></asp:TextBox>
                        </div>
                        <div class="form-group">
                            <label class="form-label">译者：</label>
                            <asp:TextBox class="form-control" placeholder="图书译者" ID="TextTranslator" runat="server"></asp:TextBox>
                        </div>
                        <div class="form-group">
                            <label class="form-label">出版社：</label>
                            <asp:TextBox class="form-control" placeholder="图书出版社" ID="TextPubname" runat="server"></asp:TextBox>
                        </div>                      
                        <div class="form-group">
                            <label class="form-label">图片：</label>
                            <asp:TextBox class="form-control" placeholder="封面图片地址" ID="TextImage" runat="server"></asp:TextBox>
                        </div>
                        <div class="form-group">
                            <label class="form-label">价格：</label>
                            <asp:TextBox class="form-control" placeholder="图书价格" ID="TextPrice" runat="server"></asp:TextBox>
                        </div>
                        <div class="form-group">
                            <label class="form-label">推荐语：</label>
                            <asp:TextBox class="form-control" placeholder="图书推荐语" ID="TextOneword" runat="server"></asp:TextBox>
                        </div>
                        <div class="form-group">
                            <label class="form-label">描述：</label>
                            <asp:TextBox TextMode="multiline" placeholder="图书简介" class="form-control" Rows="3" ID="TextDescription" runat="server"></asp:TextBox>
                        </div>
                        <div class="form-group">
                            <label for="types"  class="form-label">图书类别：</label>
                            <asp:DropDownList class="form-control" ID="DropDownList1" runat="server" DataTextField="typeName" DataValueField="id"></asp:DropDownList>
                        </div>
                        <div class="form-group">
                            <label for="types"  class="form-label">图书状态：</label>
                            <asp:DropDownList class="form-control" ID="DropDownList2" runat="server" DataTextField="stateName" DataValueField="id"></asp:DropDownList>
                        </div>

                    </div>
                    <!-- /.panel-body -->
                </div>
                <br/>
                <div class="text-right">
                    <asp:Button class="btn btn-success" ID="BtnUpdate" runat="server" Text="更新" OnClick="BtnUpdate_Click" />
                    <button type="reset" onclick="javascript:window.history.go(-1);" class="btn btn-default">返回</button>
                </div>
                <!-- /.row -->
            </div>
            <!-- /#page-wrapper -->
        </div>
        <!-- /#wrapper -->
    </form>
</asp:Content>

